
var inputs = document.querySelectorAll('input')

var Btn = document.querySelector('button')

Btn.onclick = function () {
    axios.post('/user/login', { phone: inputs[0].value, pass: inputs[1].value }).then((res) => {
        if (res.data.code == 200) {
            alert('登录成功!');
            location.herf = './indedx.html'
        } else {
            alert('登陆失败!')
        }
    })
}

